{%extends "base.html"%}
{%block body%}
<h2>All Arrays and Disks</h2>

List of Arrays:
<ul>
{%for array in arrays%}
<li>
{{array.vendor}}  <a href="{%url views.edit_array array.key.id%}">{{array.name|escape}}</a>
  - created {{array.created|date:"Y/m/d H:i:s"}} by {{array.giver}}
{%endfor%}
</ul>
<a href="{%url views.new_array%}">Create new array</a>

<br>
<br>
<br>
List of Disks:
<ul>
{%for disk in disks%}
<li>
<a href="{%url views.edit_disk disk.key.id%}">{{disk.capacity|escape}}GB</a>
  - created {{disk.created|date:"Y/m/d H:i:s"}} by {{disk.giver}}
{%endfor%}
</ul>
<a href="{%url views.new_disk%}">Create new disk</a>

{%endblock%}
